package com.cjj.aop.app;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.cjj.aop.service.PersonService;




/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
    	ApplicationContext appContext = new ClassPathXmlApplicationContext("/ApplicationContext.xml");
    	PersonService personService = appContext.getBean(PersonService.class);
    	String personName = "Jim";
    	personService.addPerson(personName);
//    	personService.deletePerson(personName);
//    	personService.editPerson(personName);
    	((ClassPathXmlApplicationContext)appContext).close();
    }
}